<template>
  <ul class="list">
    <li v-for="(item, index) in list" :key="index">
      <div class="item">
        <div class="left">
          <h4>{{ item.title }}</h4>
          <p>{{ item.text }}</p>
          <p>{{ item.p }}</p>
        </div>
        <div class="right">
          <div class="btnVal" @click="goDetail()">
            {{ item.status }}
          </div>
        </div>
      </div>
    </li>
  </ul>
</template>
<script>
export default {
  name: "conCom",
  props: ["list"],
  data() {
    return {};
  },
  methods: {
    goDetail() {
      this.$router.push({ path: "/xq_appoint" });
    }
  }
};
</script>

<style scoped lang="scss">
.list {
  overflow: hidden;
  li {
    margin: 0 auto;
    margin-top: 0.1rem;
    width: 8rem;
    // height: 90px;
    background: #ffffff;
    border-radius: 5px;
    padding: 0 12px 0 10px;
    .item {
      // height: 90px;
      padding: 0.1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .left {
        width: 70%;
        h4 {
          font-size: 0.45rem;
          font-family: PingFang SC;
          font-weight: 500;
          color: #07c6b4;
        }
        p {
          font-size: 0.35rem;
          font-family: PingFang SC;
          font-weight: 500;
          color: #999999;
          margin: 6px 0;
        }
      }
      .btnVal {
        width: 1.2rem;
        height: 0.8rem;
        background: #07c6b4;
        border-radius: 10px;
        font-size: 0.3rem;
        font-family: PingFang SC;
        font-weight: 500;
        color: #ffffff;
        line-height: 0.8rem;
        text-align: center;
      }
    }
  }
  li:last-child {
    margin-bottom: 20px;
  }
}
</style>
